CC=g++
CFLAGS=-c
LDFLAGS=
SRC=./src/
SOURCES=main.cpp $(SRC)Node.cpp $(SRC)Graph.cpp $(SRC)Algorithm.cpp $(SRC)affiche.cpp
OBJECTS=$(SOURCES:.cpp=.o)
EXECUTABLE=graphcolouring

all: $(SOURCES) $(EXECUTABLE)

$(EXECUTABLE): $(OBJECTS)
	$(CC) $(LDFLAGS) $(OBJECTS) -o $(EXECUTABLE)

.cpp.o:
	$(CC) $(CFLAGS) $< -o $@

clean:
	rm -rf *.o $(SRC)*.o $(EXECUTABLE)